
function verifyUser(){


//	var schoolname=jQuery("#schoolName").val();
//	if(schoolname==""){
//		jQuery("#message").text("请输入完整学校名称");
//		return false;
//	}
	var pwd=jQuery("#password").val();
	if(pwd==""){
		styleShow(jQuery("#pwdmsg"));
		jQuery("#pwdmsg").text("密码不能为空");
		return false;
	}
	var verifypwd=jQuery("#verifyPwd").val();
	if(pwd!=verifypwd){
		styleShow(jQuery("#pwdverifymsg"));
		jQuery("#pwdverifymsg").text("密码与确认密码不一致");
		return false;
	}
	var contact=jQuery("#conact").val();
	if(contact==""){
		styleShow(jQuery("#contactmsg"));
		jQuery("#contactmsg").text("请输入联系人");
		return false;
	}
	var contdetail=jQuery("#conactType").val();
	if(contdetail==""){
		styleShow(jQuery("#contactdetail"));
		jQuery("#contactdetail").text("请输入联系方式");
		return false;
	}
	var email=jQuery("#email").val();
	if(email==""){
		styleShow(jQuery("#emailmsg"));
		jQuery("#emailmsg").text("请填写常用的邮箱！");
		return false;
	}
	
}


function styleShow(node){
	node.attr("style","display:block");
	node.attr("style","color:#F00;")
}

function styleHide(node){
	
	jQuery("#"+node).attr("style","display:none");
	jQuery("#"+node).attr("style","color:#F00;")
	jQuery("#"+node).text("");
	
}
	
	
function modifiyUser(){
		
		var pwdhtml="<input type=\"password\" onfocus=\"styleHide('pwdmsg')\" tabindex=\"2\" maxlength=\"50\" id=\"password\" name=\"password\" value=\"\">";
		var verfieyPwdhtml="<input type=\"password\" onfocus=\"styleHide('pwdverifymsg')\" tabindex=\"2\" maxlength=\"50\" id=\"verifyPwd\" name=\"verifyPwd\" value=\"\">";
		
		jQuery("#userSchool_li").parent().after("<li><label>密码</label> <div class=\"i1\" id=\"password_li\">"+pwdhtml+"</div> <span id=\"pwdmsg\" style=\"display:none\"></span></li>" +
				"<li><label>确认密码</label><div class=\"i1\" id=\"verifyPwd_li\">"+verfieyPwdhtml+"</div> <span id=\"pwdverifymsg\" style=\"display:none\"></span></li>");
		
		var username=jQuery("#userName_li").text();
	
		jQuery("#userName_li").html("<input type=\"text\"  tabindex=\"1\" maxlength=\"100\" id=\"userName\" name=\"userName\" value="+username+" readonly='readonly' style=\"color:#ccc;\">");
		
		var schoolname=jQuery("#userSchool_li").text();
		jQuery("#userSchool_li").html("<input type=\"text\"  tabindex=\"2\" maxlength=\"50\" id=\"schoolName\" name=\"schoolName\" value="+schoolname+">");
		
	   
		var conact=jQuery("#conact_li").text();
		jQuery("#conact_li").html("<input type=\"text\" onfocus=\"styleHide('contactmsg')\" tabindex=\"2\" maxlength=\"50\" id=\"conact\" name=\"conact\" value="+conact+">");
		
		var conactdetail=jQuery("#conactType_li").text();
		jQuery("#conactType_li").html("<input type=\"text\" onfocus=\"styleHide('contactdetail')\" tabindex=\"2\" maxlength=\"50\" id=\"conactType\" name=\"conactType\" value="+conactdetail+">");
		var conactemail=jQuery("#email_li").text();
		jQuery("#email_li").html("<input type=\"text\" onfocus=\"styleHide('emailmsg')\" tabindex=\"2\" maxlength=\"50\" id=\"email\" name=\"email\" value="+conactemail+">");
		
		jQuery("#modifiyBtn").html("<input type=\"submit\" onclick=\"return verifyUser()\" class=\"inp_reg\" value=\"修 改\" name=\"submit\">");
	
}